﻿using System;

namespace BattleFury.Lib.Extensions
{
    public static class FloatExtensions
    {
        public static bool Approx(this float f, float Desired, float ErrorMargine)
        {
            return System.Math.Abs(f - Desired) <= ErrorMargine;
        }
    }
}
